using Microsoft.Extensions.DependencyInjection;

namespace demowebsocket
{
    public static class WebSocketExtentsions
    {

        public static IServiceCollection AddWebSocket(this IServiceCollection serviceCollection)
        {
            serviceCollection.AddTransient<IWebStocketHandler, WebSocketHandler>();
            serviceCollection.AddSingleton<WebSocketsManager>();
           
            return serviceCollection;
        }
    }
}